import java.util.Scanner;

public class demo2 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        while (scan.hasNext()) {
            int num = scan.nextInt();
            int count = 0;
            for (int i = 2; i < Math.sqrt(num); i++) {
                if (num % i == 0) {
                    while (num % i == 0) {
                        num = num / i;
                    }
                    count++;
                }
            }
            if (num != 1) {
                count++;
            }
            System.out.println(count);
        }
    }
}
